var HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
    entry: {
        app: ['./entry.js']
    },
    output: {
        path: __dirname,
        filename: 'bundle.js'
    },
    module: {
        loaders: [
            {test: /\.css$/, loader: 'style!css'},
            {
                test: /\.(js|jsx)$/,
                loader: 'babel',
                query:{
                    presets:['react','es2015']
                }

            }
        ]
    },
    plugins:[
        new HtmlWebpackPlugin({
            title:'Hello World'
        })
        ]


}